#!bin/bash

read -t 30 -p "Please enter dirpath"  dir

if [ -d "$dir" ] 
	then
		echo "dir!"
	else
		echo "not dir!"
fi